package org.example.order.api;

import org.example.core.utils.R;
import org.example.order.api.module.Preferential;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
 * @author 小杰_cc
 * @version 1.0
 */

@FeignClient("coupon-service")
public interface CouponService {

    // 保存优惠/折扣信息
    @GetMapping("/sms/front/preferential/list")
    R<Map<Long, Preferential>> getPreferential(@RequestParam("skuIds") List<Long> skuIds);
}